It works, I tested it with the EICAR test, even though it wouldn't be a threat on Linux.
Paste the following line in an extension-less file, for example, just "test". Not "test.txt".
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
Then see if your AV kills it.